package com.person.controller;

import com.person.model.entity.Result;
import com.person.service.OpenFilePathService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OpenFilePathController {

    @Resource
    private OpenFilePathService openFilePathService;

    @GetMapping("/open_file_path")
    public Result openFilePath(@RequestParam String filePath) {
        return openFilePathService.openFilePath(filePath);
    }
}
